import MyRecord from "../components/my_record/MyRecord";
import ParkingManage from "../components/parking_manage/ParkingManage";
import RecordManage from "../components/record_manage/RecordManage";
import Todo from "../components/todo/Todo";
import My_info from "../components/my_info/my_info";
import Personal from "../components/personal/personal";
import PersonalInfo from "../components/personal/personal-info/personal-info";
import PersonalChange_password from "../components/personal/personal-chanage_password/personal-change_password";
import PersonalNotice from "../components/personal/personal-notice/personal-notice";
import AddRecord from "../components/add_record/AddRecord";
import ParkingUnit from "../components/parking_unit/ParkingUnit";
import AddUnit from "../components/parking_unit/add_unit/addUnit";
import ParkingUnitData from "../components/parking_unit/parking_unit_data/ParkingUnitData";
import UserManage from "../components/user_manage/UserManage";
import UserManageData from "../components/user_manage/user-manage-data/UserManageData";
import UserManageAdd from "../components/user_manage/user-manage-add/UserManageAdd";
import ParkingSearch from "../components/parking_search/ParkingSearch";
import FirstTrial from "../components/todo/firstTrial/FirstTrial";
import Examine from "../components/todo/to_examine/Examine";

const routes = [
    {
        path: '/',
        component: MyRecord,
        exact: true
    },
    {
        path: '/parking_manage',
        component: ParkingManage,
        exact: true
    },
    {
        path: '/record_manage',
        component: RecordManage,
        exact: true
    },
    {
        path: '/MyRecord',
        component: MyRecord,
        exact: true
    },
    {
        path: '/todo',
        component: Todo,
        exact: true
    },
    {
        path: '/todo/firstTrial',
        component: FirstTrial,
        exact: true
    },
    {
        path: '/todo/siteInvestigation',
        component: FirstTrial,
        exact: true
    },
    {
        path: '/todo/recheck',
        component: FirstTrial,
        exact: true
    },
    {
        path: "/todo/examine/:recordTaskId",
        component: Examine,
        exact: true,
    },
    {
        path: '/my_info',
        component: My_info,
        exact: true
    },
    {
        path: '/add_record',
        component: AddRecord,
        exact: true
    },
    {
        path: '/parking_unit',
        component: ParkingUnit,
        children: [
            {
                path: '/parking_unit/add',
                component: AddUnit,
                exact: true
            },
            {
                path: '/parking_unit',
                component: ParkingUnitData,
                exact: true
            }
        ]
    },
    {
        path: '/personal',
        component: Personal,
        children: [
            {
                path: '/personal',
                component: PersonalInfo,
                exact: true
            },
            {
                path: '/personal/info',
                component: PersonalInfo,
                exact: true
            },
            {
                path: '/personal/change_password',
                component: PersonalChange_password,
                exact: true
            },
            {
                path: '/personal/notice',
                component: PersonalNotice,
                exact: true
            }
        ]
    },
    {
        path: '/parking_search',
        component: ParkingSearch,
        exact: true
    },
    {
        path: '/user_manage',
        component: UserManage,
        children: [
            {
                path: '/user_manage',
                component: UserManageData,
                exact: true
            },
            {
                path: '/user_manage/add',
                component: UserManageAdd,
                exact: true
            }
        ]
    }
]


export default routes